﻿using Apps.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Apps.IBLL.YANX
{
    public partial interface IYANX_RECORD_BLL
    {

        /// <summary>
        /// 
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        YANX_RECORD Info(string id);

        /// <summary>
        /// 
        /// </summary>
        /// <param name="batchCode"></param>
        /// <param name="collectCode"></param>
        /// <param name="name"></param>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <param name="sortFiled"></param>
        /// <param name="orderBy"></param>
        /// <param name="totalCount"></param>
        /// <returns></returns>
        List<YANX_RECORD> GetList(string batchCode, string collectCode, string name, int pageIndex, int pageSize, string sortFiled, string orderBy, ref int totalCount);

        /// <summary>
        /// 根据批次号 获取所有岩相文件
        /// </summary>
        /// <param name="batchCode"></param>
        /// <returns></returns>
        List<YANX_RECORD> GetAllList(string batchCode);

        /// <summary>
        /// 根据制样码获取批次码
        /// </summary>
        /// <param name="collectCode"></param>
        /// <returns></returns>
        string GetBatchCode(string collectCode);

        /// <summary>
        /// 
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        bool Add(YANX_RECORD model);

        /// <summary>
        /// 
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        bool Update(YANX_RECORD model);

        /// <summary>
        /// 
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        bool Delete(string id);
    }
}
